<html>
<head>
<link rel="stylesheet" href="/static/demo.css" type="text/css"> 
<title>{% block title %}{% endblock %}</title>
</head>
<body>
    <div id=greet>
	{%if greeting.nick %}
    Welcome, {{ greeting.nick }}! [<a href="{{ greeting.url}}">sign out</a>]
    {% else %}
    [<a href="{{ greeting.url }}">sign in<a/>]
    {% endif%}
    </div>
	
	<div id=pmsg>
	{{pmsg}}
	</div>
	
    <div class=navbar>
    {% block navbar %}
     <a href='/list'>list</a> - 
     <a href='/add'>add</a> -
     {% if event.key %}
      <a href='/edit?key={{event.key}}'>edit</a> -
      <a href='/display?key={{event.key}}'>display</a> -
     {% endif %}
     <a href='/_ah/admin/datastore?kind=LARPEvent'>admin</a> -
     <a href='/docs/appengine/docs/python/overview.html'>docs</a>
     <!--todo: make sure key based options actually make sense
     (e.g. edit when not got permissions, display on a newly added option)-->
    {% endblock %}
    </div>
    
    <span id=content>
	{% block content %}{% endblock %}
	</span>
</body>
</html>
